//
//  AppDelegate+Libs.m
//  BuildHome
//
//  Created by uplooking on 16/10/8.
//  Copyright © 2016年 chenrenlong. All rights reserved.
//

#import "AppDelegate+Libs.h"

@implementation AppDelegate (Libs)
#pragma mark -- 配置shareSDK
- (void)settingShareSDK{
    
    [ShareSDK registerActivePlatforms:@[@(SSDKPlatformTypeWechat)]
                             onImport:^(SSDKPlatformType platformType)
     {
         switch (platformType)
         {
             case SSDKPlatformTypeWechat:
                 [ShareSDKConnector connectWeChat:[WXApi class]];
                 break;
             default:
                 break;
         }
     }
                      onConfiguration:^(SSDKPlatformType platformType, NSMutableDictionary *appInfo)
     {
         
         switch (platformType)
         {
             case SSDKPlatformTypeWechat:
                 [appInfo SSDKSetupWeChatByAppId:WeChat_ID
                                       appSecret:WeChat_AppSecret];
                 break;
                 
             default:
                 break;
         }
     }];
    
    
}

@end
